package com.yidianyanglao.core.bean;

/**
 * Created by Administrator on 2016/10/29.
 */

import java.util.Date;

/**
 *   短信验证码实体
 *   chenkelong
 *   2016-10-29
 */
public class MobileCode {

    private int id;
    private String mobile;     //获取电话号码
    private String code;       //验证码
    private Date createdate;  //生成时间
    private Date enddate;     //过期时间
    private int state;        //验证码的使用状态

    public MobileCode(){}

    public MobileCode(String mobile, String code){
        this.mobile = mobile;
        this.code = code;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "MobileCode{" +
                "id=" + id +
                ", mobile='" + mobile + '\'' +
                ", code='" + code + '\'' +
                ", createdate=" + createdate +
                ", enddate=" + enddate +
                ", state=" + state +
                '}';
    }
}
